import React, { memo } from 'react'

import { Car } from './style'
import format from './format'
export default memo(function SongList(props) {
    const { itemInfo } = props
    return (
        <>
            <Car className="car">
                <img src={itemInfo.picUrl + "?param=140y140"} alt="" />
                <a href="aaa" className="mask sprite_covor" title={itemInfo.name}>

                </a>
                <div className="bottom sprite_covor">
                    <i className="sprite_icon headset"></i>
                    <p>
                        { format(itemInfo.playCount) }
                    </p>
                    <i className="play sprite_icon" title="播放"></i>
                </div>
            </Car>
            { props.children }
        </>

    )
})
